package com.cjb.cloudsystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjb.cloudsystem.entity.FabricBasicAsset;
import com.cjb.cloudsystem.vo.FabricBasicAssetVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* fabric账本管理
*
* @author 陈锦斌 2213859123@qq.com
* @since 1.0.0 2023-10-30
*/
public interface FabricBasicAssetService extends IService<FabricBasicAsset> {
    /**
    * 单体保存
    * @Author chenjinbin
    * @Value
    * @Title
    */
    boolean save(FabricBasicAsset fabricBasicAsset);

    /**
    *批量保存
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    Integer listSave(List<FabricBasicAsset> fabricBasicAsset);
    /**
    * 批量更新
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    void listUpdate(List<FabricBasicAsset> fabricBasicAsset);
    /**
    * 批量删除
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    void listDelete(List<FabricBasicAsset> fabricBasicAsset);


    /**
    * 通过id删除
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    int deleteById(FabricBasicAsset fabricBasicAsset);
    /**
    *单个查询
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    FabricBasicAsset queryById(FabricBasicAsset fabricBasicAsset);
    /**
    * 分页查询
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    Page queryPage(Page fabricBasicAssetPage , FabricBasicAssetVO fabricBasicAssetVO);

    /**
    * 返回全部信息
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    List<FabricBasicAsset> returnAllData();

    /**
     * 保持数据
     *
     * @Author chenjinbin
     * @Value
     * @Title
     */
    String saveBasic(FabricBasicAsset fabricBasicAsset);

}
